/*
 * Diego Zamboni Latance 			344990
 * Fellipe Augusto Ruiz de Souza 	344796
 * 
 */
package ast;

public class ReturnCommand extends Statement {

	public ReturnCommand(Expr expr) {
		this.expr = expr;
	}

	public void genC(PW pw) {

	}

	public void genKrakatoa(PW pw) {
		pw.printIdent("return ");
		expr.genKrakatoa(pw, true);
		pw.print(";\n");
	}

	private Expr expr;

}